<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<title>Sbeam后台管理端</title>
<%@ include file="../common/dev_head.jsp"%>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
	$("#mainmenu li").removeClass("active-menu");
	$("#mainmenu>li").eq(1).addClass("active-menu");
});

//通过审核
function Auditing(uid){
	$.ajax({
		url:getContextPath()+"/admin/user_auditing",
		type:"POST",
		data:{uid:uid},
		success:function(result){
			if(result=="yes"){
				alert("通过");
				window.location.href=getContextPath()+"/admin/user";
			}else{
				alert("更新信息失败,请稍后重试!");
			}
		}
	});
	
}

</script>



	<div id="wrapper">
		
		<%@ include file="./admin_title.jsp" %>
		<div id="page-wrapper">
			<div id="page-inner">
				<div class="row">
					<div class="col-md-12">
						<h1 class="page-header">用户申请列表</h1>
					</div>
				</div>
				<div class="row">
					<div class="col-lg-12">
						<div class="panel panel-default">
							<div class="panel-heading"></div>
							<div class="panel-body">
								<c:if test="${!empty user }">
									<div class="table-responsive">
									<table class="table table-striped table-bordered table-hover"
										id="dataTables-example" style="text-align:center;">
										<thead>
											<tr>
												<th>用户名</th>
												<th>邮箱</th>
												<th>手机号</th>
												<th>操作</th>
											</tr>
										</thead>
										<tbody>
											<c:forEach items="${user }" var="p">
												<tr class="odd gradeX">
												<td style="width:100px;">${p.infName }</td>
												<td style="width:200px;"><span>${p.infEmail }</span></td>
												<td style="width:100px;">
												${p.infPhone }
												</td>
												<td style="width:100px;" class="center">
													<div style="margin-top:10px">
														<a href="javascript:void(0)" onclick="Auditing(${p.userId })">
															<span class="glyphicon glyphicon-ok-circle">&thinsp;通过</span>
														</a>
													</div>
												</td>
											</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
								</c:if>
							</div>
							
						</div>
					</div>
					<!-- /. PAGE INNER  -->
				</div>
				<!-- /. PAGE WRAPPER  -->
			</div>
		</div>
		
		<!-- /. PAGE WRAPPER  -->
	</div>
	<!-- /. WRAPPER  -->

</body>
</html>